const express = require('express');
var userController = require('../controller/user.controller');

module.exports = (app)=>{
    var router = express.Router();

    router.route('/:userid')
        .get(userController.findByUserId);

    app.use('/users',router);

    return router;
}